﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace HospitalSystem
{
    public partial class Inventor : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {


            if (Session["idlogin"] == null)
            {

                FormsAuthentication.SignOut();
                FormsAuthentication.RedirectToLoginPage();

            }

            else

            {

                String ShowValue = (string)Session["idlogin"];
                UserLabel.Text = ShowValue;


                if (!IsPostBack)
                {

                    String ShowValue2 = (string)Session["find"];
                    find.Text = ShowValue2;


                }


            }


        }

        protected void Button_find_Click(object sender, EventArgs e)
        {
            Session["CID"] = null;
            Session["LastName"] = null;
            Session["FirstName"] = null;
            Session["CaseNo"] = null;
            Session["PSNumber01"] = null;
            Session["find"] = null;

            Session["find"] = find.Text;

            Response.Redirect("~/findchild.aspx");
        }
    }
}